<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
      xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
  <title>注册</title>
</head>
<body>
<h1>注册账号</h1>
<form th:action="@{/register}" method="post">
  <div><label>用户名：<input type="text" name="username"/></label></div>
  <div><label>密码：<input type="password" name="password"/></label></div>
  <div><input type="submit" value="注册"/> <a th:href="@{/login}">已有账号，请登录</a></div>
</form>
</body>
</html>